package com.utils.basehelper.array;

public class ArrayMerge {

	public static byte[] addBytes(byte[] data1, byte[] data2) {
		byte[] data3 = null;
		if(data1==null||data1.length<=0) {
			data3 = data2;
		}else {
			data3 = new byte[data1.length + data2.length]; 
			System.arraycopy(data1, 0, data3, 0, data1.length);
			System.arraycopy(data2, 0, data3, data1.length, data2.length);
		}
		return data3; 
	}
}
